Add fix bug: sometimes the images were shown in wrong size.