Add drawImage advanced functions