Add checker imageDataSize and fix views/templates