fixed issue with image downloading