Set canvas height and width for Firefox image copy-paste