added Image magic automasking script, incomplete