add drawImage method and Image type