#1991 - Add options to graphics::mark_dirty to specify type and/or mime type

- graphics::mark_dirty - added $type and $mime_type as options.
- graphics::mark_dirty - used options to set additional where conditions.