fix picture display bugs (for small pictures)