Revert "trying to implement image-clipping function"

This reverts commit a46e59d05296d236d9b322faf4606e524003033a.