-Added NewException for large images
-Changed final result to Integer