Fix canvas size when select a frame; commands for double and half scale