A chaos-based image encryption scheme using 2D rectangular transform and dependent substitution