fixed an issue with deleting images in forms
rewriting views in HAML, because YOLO