Cleaned up code in ImageMetaData servlet.