Fixed bug with opening edit upload form instead of inserting image