Import exceptions in image module