Replace MessagingException with IOException
Removed ImageServeParams object. Fixed tests