JSHint fixes
Adds size validation to image uploads