added img types check on forms