photo upload and nested attributes model implemented