fixed photo uploading for courses