Adding long polling method for images