Fixed bug with plot image