Consider renaming attribute to $name so that we can do $image->name instead of $image->imagename. I know that we use $user->username, but "username" is a word on its own so it makes sense in that context.