Fixed resizing canvas with image on it.