Fix internal server error

The error was caused by the ImageSize gem not working. I replaced it with FastImage.