Users can delete an uploaded photo

but if i put that in the controller then where can I define the method image_delete for profile? its giving me a no method error