made scaled images show properly