Fixed display bug with images smaller than natural width of detection div