Added thumbnails and support to remove patterns
Cleanup of warning and added support for android v4