Added thumbnail support when creating a new image