How can I hide a loading spinner in jQuery once an image is fully loaded