Images processing script