Fix the crash on swiping related to issue #33

I don't fully understand the logic of function `scaleImageForDynamics`. but adding a condition check solves the problem!
feel free to reject :)