[#ARCH-137 support returning GIF/PNG/JPEG/JPEG2000 Image types by WADO URI]

extracted one method and removed unused setGIFMetadata method
[#ARCH-137 support returning GIF/PNG/JPEG/JPEG2000 Image types by WADO URI]

refactoring retrieve JPEG/PNG