Fixed bug where clicking expand images more than once would result in shrink all images button being added multiple times