canvas image working with two frame from a single httpRequest