Created an own class for Image retrieval