Revise custom images functions