fixed edge issues in motion blur
optimize memory issues