bugfix in image resize
Merge pull request #6 from rbaier/bugfiximgresize

bugfix in image resize