Pages: show images tab only when images exist in database