fixes in image loader delegate