Added setter methods for gap and size of pixels