working settings code
Updated to working image size registration