both thumbnail and medium photo are being created successfully