fix size of cache canvas for drawImage