image class functions added