Image manipulation JS

Sample image