Refactoring + Bugfix with height of image

If browser was too tall, the image was blurry, because the script only
calculated the width.