Swap out old resizer bundle with Imagine Image.

Swapped out the old resizer bundle that was being used for image
processing with the imagine image library.  Broke the attachment
validation functions into a separate class.