implemented thumbnail generation for direct url submissions to png and jpg files