fixing issues with plot images