fixed image constructor