Support for placeholder image, fixed maximum height and width of canvas elements and added more meanigful names to parameters