Did some corrections in the active record model at images