added thumbnailing for raw images