Changed config and added a reset mechanism on image creation