add nonce for resize images and update options