Don't allow jpeg export of Big images
Fix syntax errors