[PATCH] Provides validation for the image file argument.