fixed a bug: wasn't checking template's max dimensions value
fixed a bug: wasn't checking template's max dimensions value

evildmp/Arkestra,evildmp/Arkestra,evildmp/Arkestra,bubenkoff/Arkestra,bubenkoff/Arkestra,bubenkoff/Arkestra