changed choose image button from input to link to remove errors when used in repeatable
removed use of $post so that new posts don't return an undefined error