switched to groovy input stream and removed more excess code
removed pair and use imageIcon directly for dimensions
removed return
head request used for validation before get. removed unused code