Provide better error messages from user script
Remove unnecessary images