fixing image function in widgets, more fixed tests