resize thumbnail if image is 0 byte length