remove scale from converter arguments
Check image bounds before converting to prevent panic.