changing image preview for course and logo viewing without user login