removed previous create thumbnail code