Memory limit; All images; Check for [gallery] in content.

Changes described in each individual commit.