Fixed #119. Right way to get thumbnail of image