renders previous image partially hidden behind div and correctly renders drawing canvas