A Framework For Image Based Authentication