changes for REGISTER BELOW TO SAVE image plus padding fix