Fixed lightbox image onload issue