add setupCanvas and Image type.