tile flip support added

Added tile flip support