Fixed dst_size in crop function.
Added function to extrapolate mask with random values (avoids lines in non-masked area)