BAC-86: Upload verify

Add a hook to check if uploaded image file is corrupted