Fixed bug with plot images