Fixed the bug for showing unscaled image

The whole canvas logic is moved to content script…