photo upload at create action, error fixed