A generalized framework for elliptic curves based PRNG and its utilization in image encryption