Fix warnings
Check for image