Abstracted setting image in canvas