create a cross-fade between two images using canvas