Fixed issue with image message step size

This should fix issue #27, together with a fitting unit tests.