Fix image proportions changing with windows (fixes #249)