Bug fixes 2

Various bug fixes to conditional formatting, optimized placement of
pictures, fixed the delete feature.