Crash when resizing image prompt appears

Fixes #971 

Message unsignedInteger being sent to an NSString/CFString instance - convenience method doesn’t exist.