Added resize error code
Added density parameters
Added notice