Image selection Rectangle calculation