WICKET-5602 DynamicImageResource should set the mime type after reading the image data