Fixes #16 mouse coords error, check if image is null