Image: Added some paranoia.

Protect against needle_size being zero to avoid division by zero.