Have a look at this post 153 to see, how to create a custom mapping.
RandomCrop should work in the default setup without padding. However, you should make sure to use the same “random” locations for both, your input and target as shown here 27.