Small fixes related to article edit screen

New template for images added to media tab + fixed small bug in adding
image popup