Draw decorations only if zoom is less than 15 images in a row

We only need to know if the image is grouped or is selected when
the image is hovered
Query the db when it is really needed